package com.xmg.server.goods.mapper;

import com.xmg.shop.api.domain.Brand;
import com.xmg.shop.api.query.BrandQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BrandMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Brand record);

    Brand selectByPrimaryKey(Long id);

    List<Brand> selectAll();

    int updateByPrimaryKey(Brand record);

    Long queryPageCount(BrandQueryObject qo);

    List<Brand> queryPageData(BrandQueryObject qo);

    void insetRelation(@Param("brandId")Long brandId,@Param("catalogId")Long aLong);

    void deleteRelationByBrandId(Long id);

    List<Brand> selectBrandNameAndId();

}